package com.johnburrin.mortgage.estimator;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.ImageButton;

public class AfffordabilityActivity extends Activity {
	ImageButton btnPrevious = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_afffordability);
		btnPrevious = (ImageButton) findViewById(R.id.imageButtonPrevious);
		btnPrevious.setOnClickListener(onClickHandler);
    }
    
    View.OnClickListener onClickHandler = new View.OnClickListener() {
		public void onClick(View v) {
			// TODO Use this for all click events
			switch (v.getId()){
			case R.id.imageButtonPrevious : finish(); break;
			}
		}

	};
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
